#ifndef _CBITWINDOW_H_
#define _CBITWINDOW_H_

#include <buola/gui/cwindow.h>
#include <buola/widgets/clistview.h>
#include "cdownloadcell.h"

namespace buola { namespace bitviewer {

class CBitWindow : public gui::CWindow, public gui::DListViewDelegate
{
public:
    CBitWindow();

private:
    gui::PWindow GetListViewCell(gui::CListView *pListView,int pSection,int pPos) override;
    int GetListViewCellCount(gui::CListView *pListView,int pSection) override;
    
    void OnLayout() override;
    
private:
    gui::PListView mList;
    PDownloadCell mCell;
};

typedef intrusive_ptr<CBitWindow> PBitWindow;

/*namespace bitviewer*/ } /*namespace buola*/ }

#endif
